hackerrank java instanceof keyword solution

visit shbcf.ru